const express = require('express');
const router = express.Router();
const adminController = require('../controllers/adminController');
const authMiddleware = require('../middleware/auth');

// 公开路由
router.post('/login', adminController.login);

// 需要认证的路由
router.use(authMiddleware);
router.get('/info', adminController.getInfo);
router.post('/logout', adminController.logout);
router.post('/change-password', adminController.changePassword);

module.exports = router; 